import React, { Component } from 'react';
import { Grid } from 'antd-mobile';
import {StyledGood } from "./styledHome";
class Good extends Component {
  render() {
    return (
      <StyledGood>
        <h3>精品好菜</h3>
        <Grid data={this.props.arr
}
            columnNum={2}
            renderItem={dataItem => (
                <div className='item-list'>
                  <img src={dataItem.img} alt="" />
                  <p>{dataItem.name}</p>
                  <h6>{dataItem.all_click}浏览量 &nbsp;&nbsp;{dataItem.favorites}收藏</h6>
                </div>
            )}
          />
      </StyledGood>
    );
  }
}

export default Good;
